import http from "@/utils/http"

export function getListAPI(data) {
  return http({
    url: "/article/list",
    method: "post",
    data,
  })
}
// 获取个人信息
export function getInfoAPI() {
  return http({
    url: "/blog/settings/detail",
    method: "post",
  })
}

// 获取访问数量
export function getVisitAPI() {
  return http({
    url: "/statistics/info",
    method: "post",
  })
}

// 获取分类列表
export function getCategoryAPI() {
  return http({
    url: "/category/list",
    method: "post",
    data: { size: 10 },
  })
}

// 获取标签列表
export function getTagAPI() {
  return http({
    url: "/tag/list",
    method: "post",
    data: { size: 20 },
  })
}
